<html><head><title>IsNaN</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">IsNaN()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result.f = <font color="#006666"><b>IsNaN</b></font>(Value.f)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns nonzero if the given value 'Not a Number'. This value is the result of some invalid 
calculations. It can also be generated using the <a href="nan.html">NaN()</a> function. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Value.f</i></td>
<td width="90%"> 
The value to check for NaN. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns nonzero if the input value is not a number and zero otherwise. 

</blockquote><p><b>Remarks</b></p><blockquote>

NaN is a special value. Testing for it should not be done using normal comparisons because 
there are actually many different values for NaN and whether or not NaN is considered equal 
with itself in comparisons depends on the hardware. 
<br>
<br>
This function can handle <a href="../reference/variables.html">float and double</a> values. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  Result =<font color="#006666"> IsNAN</font>(<font color="#006666">NaN</font>())       <font color="#006666">; NaN</font>
  Result =<font color="#006666"> IsNAN</font>(<font color="#006666">Sqr</font>(-1))     <font color="#006666">; NaN</font>
  Result =<font color="#006666"> IsNAN</font>(1234.5)      <font color="#006666">; a normal number</font>
  Result =<font color="#006666"> IsNAN</font>(<font color="#006666">Infinity</font>())  <font color="#006666">; infinity is not NaN </font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="nan.html">NaN()</a>, <a href="isinfinity.html">IsInfinity()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=isinfinity.html>IsInfinity()</a> - <a href=index.html>Math Index</a> - <a href=log.html>Log()</a> ->

</body></html>